package com.gzist.elderlyserviceplatform.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gzist.elderlyserviceplatform.common.base.BaseVO;
import com.gzist.elderlyserviceplatform.entity.po.Comment;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Schema(description = "评论信息列表VO")
public class ClientCommentVo extends BaseVO{
    private static final long serialVersionUID = 1L;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "评论内容")
    private String content;

    @Schema(description = "评论人")
    private String userId;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "父级 ID")
    private String parentId;

    @Schema(description = "根节点 ID")
    private String rootId;

    @Schema(description = "模块，如 activity、info_news 等")
    private String module;

    @Schema(description = "审核状态(待审核，已通过，未通过)")
    private String status;

    @Schema(description = "子评论集合")
    private List<ClientCommentVo> childCommentList;


}
